#ifndef Hough_h
#define Hough_h

#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <vector>

using namespace	std;
using namespace cv;

class Hough
{
public:
	Hough(void);
	~Hough(){
		if (acumulador)
			free(acumulador);
	}
	void liberar(){
		free(acumulador);
		acumulador = NULL;
	}
	int Transform(vector<Point> contorno, int w, int h)  ;
	vector<Vec4i> GetLines(int threshold);
private:
	int anchoImagen,altoImagen;
	int anchoAcum,altoAcum;
	unsigned int* acumulador;
};
#endif
